{% extends 'base.html' %}

{% block title %}
首页
{% endblock %}

{% block head %}
    <link rel="stylesheet" href="{{ url_for('static',filename='css/index.css') }}">
{% endblock %}

{% block body %}
    <ul>
        {% for record in records %}
        <li>
            <div class="avator-group">
                <img src="{{ url_for('static',filename='images/zhiliao.png') }}" class="avator">
            </div>
            <div class="question-group">
                <p class="question-title"><a href="{{ url_for('detail',record_id=record.id) }}">{{ record.consumeType.title }}:{{ record.title }}</a></p>
                <p class="question-content">{{ record.content }}</p>
            </div>
             <div class="question-info">
                <span class="question-author">{{ record.author.username }}</span>
                <span class="question-time">{{ record.create_time }}</span>
            </div>
        </li>
        {% endfor %}
    </ul>
{% endblock %}